<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .active {
            color: red;
        }
    </style>
</head>

<body>
    <div id="box">
        <ul>
            <li v-for="item in list">
                <span>{{item.goodName}}</span>|
                <span>{{item.price}}</span>|
                <span v-if="item.stats === 0">未付款</span>
                <span v-else-if="item.stats === 1">已下单</span>
                <span v-else-if="item.stats === 2">已发货</span>
            </li>
        </ul>
    </div>
    <script src='./js/vue.js'></script>
    <script>
        var vm = new Vue({
            el: "#box",
            data: {
                list: [
                    {
                        goodName: "手机1",
                        price: "3000",
                        stats: 0//未付款
                    },
                    {
                        goodName: "手机2",
                        price: "4000",
                        stats: 1//已下单
                    },
                    {
                        goodName: "手机3",
                        price: "5000",
                        stats: 2//已发货
                    },

                ]
            }
        })
    </script>
</body>

</html>